using System;
using System.Collections.Generic;
using System.Text;
using HermesPortal.Core;   
using HermesPortal.Core.DAO;
namespace HermesPortal.Core
{
    public class SagaServices
    {

        public static Saga GetSaga(int sagaId)
        {

            Saga saga = SagaDAO.GetSaga(sagaId);
            return saga;
        }

        public static List<Saga> GetSagas()
        {
            return SagaDAO.GetSagas();  
        }

        public static List<Saga> GetSagasByCreator(int creatorId)
        {
            return SagaDAO.GetSagasByCreator(creatorId); 
        }

        public static int AddSaga(Saga saga)
        {
            return SagaDAO.InsertSaga(saga); 
        }

        public static void UpdateSaga( Saga saga)
        {
            SagaDAO.UpdateSaga(saga); 
        }

        /// <summary>
        /// Returns a SortedList Key SagaID Value SagaName
        /// </summary>
        public static SortedList<Int32, String> GetSagaList()
        {
            return SagaDAO.GetSagaList();
        }
        public static List<SagaSummary> GetSagaSummarys()
        {
            return SagaDAO.GetSagaSummarys();  
        }

    }
}
